- Deutsche Bahn MCP Server
Deutsche Bahn MCP Server
📋 Quick Start (for developers - User instructions below) Prerequisites Python 3.11+ Deutsche Bahn API credentials (Get them here) Google Cloud account (for deployment) Local Development Clone and setup:
git clone
cp .env.example .env Next, edit the new .env file with your DB API credentials. See the "Configuration" section for details on each variable.
Run the server:
python main.py
Server available at http://localhost:8080
🎯 Live Server Usage Guide The Deutsche Bahn MCP Server is live at https://db-mcp.datamonkey.tech and ready to use immediately. Follow these step-by-step guides to start accessing German railway data in Claude.
🖥️ Claude Desktop Setup Step 1: Locate your configuration file
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json Step 2: Edit the configuration Open the file and add the Deutsche Bahn server:
{ "mcpServers": { "deutschebahn": { "command": "npx", "args": [ "-y", "mcp-remote", "https://db-mcp.datamonkey.tech/mcp", "--transport", "http-only" ] } } } Step 3: Restart Claude Desktop
Close Claude Desktop completely Reopen the application You should see "Deutsche Bahn MCP Server" in the MCP section Step 4: Test the connection Ask Claude: "What train stations are in Berlin?"
🌐 Claude.ai Web Usage Step 1: Start a conversation Go to claude.ai and begin a new conversation.
Step 2: Add the MCP Server Click on "Search and Tools > Add connectors > Manage connectors" Select "Add custom connector" Enter a name, e.g.: "Deutsche Bahn MCP Server" Enter this remote MCP Server URL: https://db-mcp.datamonkey.tech/mcp
Step 3: Test immediately Try asking: "Find train stations near Frankfurt and check for any current delays at Frankfurt Hauptbahnhof."
Server Config
{
"mcpServers": {
"deutschebahn": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://db-mcp.datamonkey.tech/mcp",
"--transport",
"http-only"
]
}
}
}